from sqlalchemy import create_engine


engine = create_engine('mysql+pymysql://root:qaz3357375@localhost/test?charset=utf8')
cursor = engine.execute('select * from users2')
result = cursor.fetchall()
print(result)

# https://www.cnblogs.com/wupeiqi/articles/8259356.html
